package com.heima.feign.clients;

import com.heima.feign.clients.fallback.ArticleClientImpl;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-article",fallback = ArticleClientImpl.class)
public interface ArticleClient {

    @PostMapping("/api/v1/article/save")
     ResponseResult saveOrUpdateArticle(@RequestBody ArticleDto dto);
}
